package com.u.iot.engineering.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("server_state")
public class ServerState implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("server_id")
    private Long serverId;

    @TableField("server_name")
    private String serverName;

    @TableField("cpu_thread")
    private Integer cpuThread;

    @TableField("cpu_core")
    private Integer cpuCore;

    @TableField("remain_cpu_core")
    private Integer remainCpuCore;

    @TableField("total_cpu_mem")
    private Integer totalCpuMem;

    @TableField("remain_cpu_mem")
    private Integer remainCpuMem;

    @TableField("total_gpu_mem")
    private Integer totalGpuMem;

    @TableField("remain_gpu_mem")
    private Integer remainGpuMem;

    @TableField("cuda_core")
    private Integer cudaCore;

    @TableField("remain_cuda_core")
    private Integer remainCudaCore;

    @TableField("tensor_core")
    private Integer tensorCore;

    @TableField("remain_tensor_core")
    private Integer remainTensorCore;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
